using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace Pbdms.NetworkDealer.EventArgs
{
    /// <summary>
    /// define an event argument passed when a DownloadRequestReceived event is triggered
    /// </summary>
    [System.Xml.Serialization.XmlInclude(typeof(Pbdms.NetworkDealer.Requests.DownloadRequest))]
    public class DownloadRequestReceivedEventArgs: System.EventArgs 
    {
        private readonly Pbdms.NetworkDealer.Requests.DownloadRequest downloadRequestObj;
        /// <summary>
        /// get the download request object
        /// </summary>
        public Pbdms.NetworkDealer.Requests.DownloadRequest DownloadRequestObj
        {
            get { return downloadRequestObj; }
        }

        public DownloadRequestReceivedEventArgs() { }
        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="downloadRequestObj"></param>
        public DownloadRequestReceivedEventArgs(Pbdms.NetworkDealer.Requests.DownloadRequest downloadRequestObj)            
        {
            this.downloadRequestObj = downloadRequestObj;
        }


    }
}
